Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.ecm.social.workspace.types

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.social.workspace.types">

  <require>org.nuxeo.ecm.platform.types</require>

  <extension target="org.nuxeo.ecm.platform.types.TypeService"
    point="types">

    <type id="Root">
      <subtypes>
        <type>Domain</type>
        <type>SocialDomain</type>
      </subtypes>
    </type>

    <type id="SocialDomain">
      <label>SocialDomain</label>
      <icon>/icons/social_domain.gif</icon>
      <bigIcon>/icons/social_domain.gif</bigIcon>
      <category>SuperDocument</category>
      <description>SocialDomain.description</description>
      <default-view>view_documents</default-view>
      <create-view>create_domain</create-view>
      <views>
        <view id="user_dashboard" value="user_dashboard" />
        <view id="opensocial_dashboard" value="opensocial_dashboard" />
      </views>
      <subtypes>
        <type>SocialWorkspace</type>
      </subtypes>
      <layouts mode="any">
        <layout>heading</layout>
      </layouts>
      <layouts mode="edit">
        <layout>heading</layout>
        <layout>dublincore</layout>
      </layouts>
      <contentViews category="content">
        <contentView>document_content</contentView>
      </contentViews>
      <contentViews category="trash_content">
        <contentView showInExportView="false">
          document_trash_content
        </contentView>
      </contentViews>
    </type>

    <type id="SocialWorkspace">
      <label>SocialWorkspace</label>
      <icon>/icons/social_workspace.png</icon>
      <bigIcon>/icons/social_workspace_100.png</bigIcon>
      <icon-expanded>/icons/social_workspace_open.png</icon-expanded>
      <category>Collaborative</category>
      <default-view>view_documents</default-view>
      <layouts mode="any">
        <layout>social_workspace_heading</layout>
      </layouts>
      <layouts mode="edit">
        <layout>social_workspace_heading</layout>
        <layout>social_workspace</layout>
      </layouts>
      <subtypes>
        <type>SocialFolder</type>
        <type>Article</type>
        <type>File</type>
        <type>VEVENT</type>
      </subtypes>
      <contentViews category="content">
        <contentView>document_content</contentView>
      </contentViews>
      <contentViews category="trash_content">
        <contentView showInExportView="false">
          document_trash_content
        </contentView>
      </contentViews>
    </type>

    <type id="Article">
      <label>Article</label>
      <icon>/icons/article.png</icon>
      <bigIcon>/icons/article_100.png</bigIcon>
      <category>SimpleDocument</category>
      <default-view>view_documents</default-view>
      <layouts mode="any">
        <layout>social_document_heading</layout>
        <layout>article</layout>
        <layout>social_document_content</layout>
      </layouts>
      <layouts mode="summary">
        <layout>social_document_summary_layout</layout>
      </layouts>
      <layouts mode="edit">
        <layout>social_document_heading</layout>
        <layout>article</layout>
        <layout>social_document_content</layout>
        <layout>dublincore</layout>
      </layouts>
      <layouts mode="view">
        <layout>article</layout>
        <layout>social_document_content</layout>
      </layouts>
      <layouts mode="collaboration">
        <layout>collaboration</layout>
      </layouts>
      <views>
        <view id="collaboration" value="view_social_document" />
        <view id="after-social-collaboration-creation" value="view_social_document"/>
        <view id="edit_social_document" value="edit_social_document"/>
        <view id="after-social-collaboration-edition" value="view_social_document"/>
      </views>
    </type>

    <type id="NewsItem">
      <label>NewsItem</label>
      <icon>/icons/note.gif</icon>
      <bigIcon>/icons/note_100.png</bigIcon>
      <category>SimpleDocument</category>
      <default-view>view_documents</default-view>
      <layouts mode="any">
        <layout>social_document_heading</layout>
        <layout>news_item</layout>
        <layout>social_document_content</layout>
      </layouts>
      <layouts mode="summary">
        <layout>news_item_summary_layout</layout>
      </layouts>
      <layouts mode="edit">
        <layout>social_document_heading</layout>
        <layout>news_item</layout>
        <layout>social_document_content</layout>
        <layout>dublincore</layout>
      </layouts>
      <layouts mode="view">
        <layout>social_document_content</layout>
      </layouts>
      <layouts mode="collaboration">
        <layout>collaboration</layout>
      </layouts>
      <views>
        <view id="collaboration" value="view_social_document" />
        <view id="after-social-collaboration-creation" value="view_social_document"/>
        <view id="edit_social_document" value="edit_social_document"/>
        <view id="after-social-collaboration-edition" value="view_social_document"/>
      </views>
    </type>


    <type id="NewsItemsRoot">
      <label>NewsItemsRoot</label>
      <icon>/icons/news_items_root.png</icon>
      <default-view>view_documents</default-view>
      <layouts mode="any">
        <layout>heading</layout>
      </layouts>
      <layouts mode="edit">
        <layout>heading</layout>
      </layouts>
      <layouts mode="view">
        <layout>heading</layout>
      </layouts>
      <subtypes>
        <type>NewsItem</type>
      </subtypes>
      <contentViews category="content">
        <contentView>document_content</contentView>
      </contentViews>
      <contentViews category="trash_content">
        <contentView showInExportView="false">
          document_trash_content
        </contentView>
      </contentViews>
    </type>

    <type id="SocialFolder">
      <label>Folder</label>
      <icon>/icons/folder.gif</icon>
      <bigIcon>/icons/folder_100.png</bigIcon>
      <icon-expanded>/icons/folder_open.gif</icon-expanded>
      <category>Collaborative</category>
      <description>Folder.description</description>
      <default-view>view_documents</default-view>
      <subtypes>
        <type>SocialFolder</type>
        <type>Article</type>
        <type>File</type>
        <type>VEVENT</type>
      </subtypes>
      <layouts mode="any">
        <layout>heading</layout>
      </layouts>
      <layouts mode="edit">
        <layout>heading</layout>
        <layout>dublincore</layout>
      </layouts>
      <contentViews category="content">
        <contentView>document_content</contentView>
      </contentViews>
      <contentViews category="trash_content">
        <contentView showInExportView="false">
          document_trash_content
        </contentView>
      </contentViews>
    </type>

    <type id="DashboardSpacesContainer">
      <label>DashboardSpacesContainer</label>
      <icon>/icons/social_workspace.png</icon>
      <bigIcon>/icons/social_workspace_100.png</bigIcon>
      <default-view>view_documents</default-view>
      <views>
        <view id="collaboration" value="dashboard" />
        <view id="articles" value="articles"/>
        <view id="news_items" value="news_items"/>
        <view id="files" value="files"/>
      </views>
    </type>

    <type id="File">
      <layouts mode="collaboration">
        <layout>file_collaboration</layout>
      </layouts>
      <views>
        <view id="collaboration" value="view_social_document" />
        <view id="after-social-collaboration-creation" value="view_social_document"/>
        <view id="edit_social_document" value="edit_social_document"/>
        <view id="after-social-collaboration-edition" value="view_social_document"/>
      </views>
    </type>
  </extension>

</component>